package org.outlook.commons.authentocate;

import java.io.IOException;
import java.util.EventObject;

/**
 * This is an event object that is passed to login listener methods
 * 
 * @author Shai Almog
 */
public class LoginEvent extends EventObject {

	private static final long serialVersionUID = 1L;
	private IOException cause;

	public LoginEvent(Object source) {
		this(source, null);
	}

	/** Creates a new instance of LoginEvent */
	public LoginEvent(Object source, IOException cause) {
		super(source);
		this.cause = cause;
	}

	public IOException getCause() {
		return cause;
	}
}
